package e2q.liferay.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;
// default package

import org.hibernate.annotations.GenericGenerator;



/**
 * E2qLiGroup entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Group_")
public class E2qLiGroup  implements  java.io.Serializable {


    // Fields    

     private Long groupId;
     private long companyId;
     private E2qLiUser creatorUser;
     private long classNameId;
     private long classPk;
     private long parentGroupId;
     private long liveGroupId;
     private String name;
     private String description;
     private Integer type;
     private String typeSettings;
     private String friendlyUrl;
     private byte active;


    // Constructors

    /** default constructor */
    public E2qLiGroup() {
    }

	/** minimal constructor */
    public E2qLiGroup(long groupId) {
        this.groupId = groupId;
    }
    
    /** full constructor */
    public E2qLiGroup(long groupId, long companyId, long creatorUserId, long classNameId, long classPk, long parentGroupId, long liveGroupId, String name, String description, Integer type, String typeSettings, String friendlyUrl, byte active) {
        this.groupId = groupId;
        this.companyId = companyId;
        this.classNameId = classNameId;
        this.classPk = classPk;
        this.parentGroupId = parentGroupId;
        this.liveGroupId = liveGroupId;
        this.name = name;
        this.description = description;
        this.type = type;
        this.typeSettings = typeSettings;
        this.friendlyUrl = friendlyUrl;
        this.active = active;
    }

   
    // Property accessors
    @Id
	@GeneratedValue(generator = "pk")
	@Column(name = "groupId")
	@GenericGenerator(name = "pk", strategy = "e2q.web.orm.IdGenerator")
    public Long getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }
	@Column(name = "companyId")
    public long getCompanyId() {
        return this.companyId;
    }
    
    public void setCompanyId(long companyId) {
        this.companyId = companyId;
    }
    
	@ManyToOne
	@JoinColumn(name = "creatorUserId")
    public E2qLiUser getCreatorUser() {
        return this.creatorUser;
    }
    
    public void setCreatorUser(E2qLiUser creatorUser) {
        this.creatorUser = creatorUser;
    }
	@Column(name = "classNameId")
    public long getClassNameId() {
        return this.classNameId;
    }
    
    public void setClassNameId(long classNameId) {
        this.classNameId = classNameId;
    }
	@Column(name = "classPk")
    public long getClassPk() {
        return this.classPk;
    }
    
    public void setClassPk(long classPk) {
        this.classPk = classPk;
    }
	@Column(name = "parentGroupId")
    public long getParentGroupId() {
        return this.parentGroupId;
    }
    
    public void setParentGroupId(long parentGroupId) {
        this.parentGroupId = parentGroupId;
    }
	@Column(name = "liveGroupId")
    public long getLiveGroupId() {
        return this.liveGroupId;
    }
    
    public void setLiveGroupId(long liveGroupId) {
        this.liveGroupId = liveGroupId;
    }
	@Column(name = "name")
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
	@Column(name = "description")
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
	@Column(name = "type_")
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
	@Column(name = "typeSettings")
    public String getTypeSettings() {
        return this.typeSettings;
    }
    
    public void setTypeSettings(String typeSettings) {
        this.typeSettings = typeSettings;
    }
	@Column(name = "friendlyUrl")
    public String getFriendlyUrl() {
        return this.friendlyUrl;
    }
    
    public void setFriendlyUrl(String friendlyUrl) {
        this.friendlyUrl = friendlyUrl;
    }
	@Column(name = "active_")
    public byte getActive() {
        return this.active;
    }
    
    public void setActive(byte active) {
        this.active = active;
    }
   






}